//
//  NSURL+Extension.m
//  FMRemotePlayer
//
//  Created by appbanana on 2017/3/12.
//  Copyright © 2017年 appbanana. All rights reserved.
//

#import "NSURL+Extension.h"

@implementation NSURL (Extension)

- (NSURL *)fmURL{
    NSURLComponents *components = [NSURLComponents componentsWithString:self.absoluteString];
    components.scheme = @"fm";
    return components.URL;
}

- (NSURL *)httpURL{
    NSURLComponents *components = [NSURLComponents componentsWithString:self.absoluteString];
    components.scheme = @"http";
    return components.URL;
}


@end
